'use strict';

angular.module('tvshowsApp')
    .controller('ShowDetailController', function ($scope, $stateParams, Show) {
        $scope.show = {};
        $scope.load = function (id) {
            console.log("passe dans load " + id);
            Show.get({id: id}, function(result) {
              $scope.show = result;
            });
        };

        $scope.load($stateParams.id);
    });
